home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Views
/
ViewCell
/
CellUpdater.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
619b
|
34 lines
// CellUpdater.cp
#ifndef CellUpdater_h
#include "CellUpdater.h"
#endif
#ifndef ViewCell_h
#include "ViewCell.h"
#endif
#ifndef RegionObject_h
#include "RegionObject.h"
#endif
#ifndef Canvas_h
#include "Canvas.h"
#endif
#ifndef CanvasMaintainer_h
#include "CanvasMaintainer.h"
#endif
CellUpdater::CellUpdater( const RegionObject& target )
: CellVisitor( target.Bounds() ),
toUpdate( target )
{
}
void CellUpdater::Visit( ViewCell& cell,
const Canvas& canvas )
{
if ( canvas.Visible() && canvas.Clip().Intersects( toUpdate ) )
{
CanvasMaintainer cm( canvas );
cell.Draw( canvas );
}
}